<?php
require_once 'common/init.php';

if(isset($_POST["signed_request"])) {
	$r=Gateway::excute('auth','AuthProxy','sinaOAuth2');
	if($r['result']==0) {
		$view=CoreFactory::view();
		$view->render('/auth/sinaAuth','blank');
		exit;
	}
}

$view=CoreFactory::view();
$result = WebGateway::excute('group','GroupProxy','mine');
$view->groupList = $result['data']['list'];
$view->render('/index','blank');
